<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" placeholder="请填写{:__('Name')}" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Url')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-url" class="form-control" name="row[url]" type="text" value="{$row.url|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('标签')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tag" data-primary-key="name" data-order-by='id desc' data-field="name" data-max-select-limit="50" data-multiple="true" data-source="accounturllabel/index" class="form-control selectpage" name="row[tag]" type="text" value="{$row.tag|htmlentities}" placeholder="标签可以多选">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Info')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-info" class="form-control" name="row[info]" disabled type="text" value="{$row.info|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Iscustom')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select name="row[iscustom]" id="c-iscustom" class="form-control selectpicker">
                <option value="" {in name="0" value="$row.iscustom"}selected{/in}>否</option>
                <option value="1" {in name="1" value="$row.iscustom"}selected{/in}>是</option>
            </select>
        </div>
    </div>
    <div id="shopifyshow" style="display: none;">
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Shopifyapikey')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-shopifyapikey" class="form-control" name="row[shopifyapikey]" type="text" value="{$row.shopifyapikey|htmlentities}" placeholder="请填写{:__('Shopifyapikey')}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Shopifysecretapikey')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-shopifysecretapikey" class="form-control" name="row[shopifysecretapikey]" type="text" value="{$row.shopifysecretapikey|htmlentities}" placeholder="请填写{:__('Shopifysecretapikey')}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Shopifyname')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-shopifyname" class="form-control" name="row[shopifyname]" type="text" value="{$row.shopifyname|htmlentities}" placeholder="请填写{:__('Shopifyname')}，例如https://schatzirqo.myshopify.com">
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('接入Shoplaza')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select name="row[iscustom_shoplaza]" id="c-iscustom_shoplaza" class="form-control selectpicker">
                <option value="" {in name="0" value="$row.iscustom_shoplaza"}selected{/in}>否</option>
                <option value="1" {in name="1" value="$row.iscustom_shoplaza"}selected{/in}>是</option>
            </select>
        </div>
    </div>
    <div id="shoplazashow" style="display: none;">
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Shoplazaname')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-shoplazaname" class="form-control" name="row[shoplazaname]" type="text" value="{$row.shoplazaname|htmlentities}" placeholder="请填写{:__('Shoplazaname')}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('ShopifyToken')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-shoplazatoken" class="form-control" name="row[shoplazatoken]" type="text" value="{$row.shoplazatoken|htmlentities}" placeholder="请填写{:__('ShopifyToken')}">
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('接入Woocommerce')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select name="row[iscustom_woocommerce]" id="c-iscustom_woocommerce" class="form-control selectpicker">
                <option value="" {in name="0" value="$row.iscustom_woocommerce"}selected{/in}>否</option>
                <option value="1" {in name="1" value="$row.iscustom_woocommerce"}selected{/in}>是</option>
            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Admin_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-admin_id" data-rule="required" data-field="nickname" data-source="auth/admin/index" class="form-control selectpage" data-params='{"custom[status]":"normal"}' name="row[admin_id]" type="text" value="{$row.admin_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="statusList" item="vo"}
                <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
